
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, MyWindowClick)
{
    MyWindowClickForOK = 0,

    MyWindowClickForCancel
};

typedef NS_ENUM(NSInteger, WKAlertViewStyle)
{
    WKAlertViewStyleDefalut = 0,

    WKAlertViewStyleSuccess,

    WKAlertViewStyleFail,

    WKAlertViewStyleWaring
};

typedef void (^callBack)(MyWindowClick buttonIndex);

@interface WKAlertView : UIWindow

@property (nonatomic, copy) callBack clickBlock ;

+ (instancetype)shared;

+ (instancetype)showAlertViewWithStyle:(WKAlertViewStyle)style title:(NSString *)title detail:(NSString *)detail canleButtonTitle:(NSString *)canle okButtonTitle:(NSString *)ok callBlock:(callBack)callBack;

+ (instancetype)showAlertViewWithTitle:(NSString *)title detail:(NSString *)detail canleButtonTitle:(NSString *)canle okButtonTitle:(NSString *)ok callBlock:(callBack)callBack;

@end
